<!DOCTYPE html>
<html lang="en">
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
    <meta charset="utf-8"/>
    <title>PhalApi docs - 1.2.1</title>
    <meta name="author" content=""/>
    <meta name="description" content=""/>

    <link href="../css/bootstrap-combined.no-icons.min.css" rel="stylesheet">
    <link href="../css/font-awesome.min.css" rel="stylesheet">
    <link href="../css/prism.css" rel="stylesheet" media="all"/>
    <link href="../css/template.css" rel="stylesheet" media="all"/>
    
    <!--[if lt IE 9]>
    <script src="../js/html5.js"></script>
    <![endif]-->
    <script src="../js/jquery-1.11.0.min.js"></script>
    <script src="../js/ui/1.10.4/jquery-ui.min.js"></script>
    <script src="../js/bootstrap.min.js"></script>
    <script src="../js/jquery.smooth-scroll.js"></script>
    <script src="../js/prism.min.js"></script>
    <!-- TODO: Add http://jscrollpane.kelvinluck.com/ to style the scrollbars for browsers not using webkit-->
    <script type="text/javascript">
    function loadExternalCodeSnippets() {
        Array.prototype.slice.call(document.querySelectorAll('pre[data-src]')).forEach(function (pre) {
            var src = pre.getAttribute('data-src');
            var extension = (src.match(/\.(\w+)$/) || [, ''])[1];
            var language = 'php';

            var code = document.createElement('code');
            code.className = 'language-' + language;

            pre.textContent = '';

            code.textContent = 'Loading…';

            pre.appendChild(code);

            var xhr = new XMLHttpRequest();

            xhr.open('GET', src, true);

            xhr.onreadystatechange = function () {
                if (xhr.readyState == 4) {

                    if (xhr.status < 400 && xhr.responseText) {
                        code.textContent = xhr.responseText;

                        Prism.highlightElement(code);
                    }
                    else if (xhr.status >= 400) {
                        code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
                    }
                    else {
                        code.textContent = '✖ Error: File does not exist or is empty';
                    }
                }
            };

            xhr.send(null);
        });
    }

    $(document).ready(function(){
        loadExternalCodeSnippets();
    });
    $('#source-view').on('shown', function () {
        loadExternalCodeSnippets();
    })
</script>

    <link rel="shortcut icon" href="../images/favicon.ico"/>
    <link rel="apple-touch-icon" href="../images/apple-touch-icon.png"/>
    <link rel="apple-touch-icon" sizes="72x72" href="../images/apple-touch-icon-72x72.png"/>
    <link rel="apple-touch-icon" sizes="114x114" href="../images/apple-touch-icon-114x114.png"/>
</head>
<body>

<div class="navbar navbar-fixed-top">
    <div class="navbar-inner">
        <div class="container">
            <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                <i class="icon-ellipsis-vertical"></i>
            </a>
            <a class="brand" href="../index.html">PhalApi docs - 1.2.1</a>

            <div class="nav-collapse">
                <ul class="nav pull-right">
                                        <li class="dropdown" id="charts-menu">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            Charts <b class="caret"></b>
                        </a>
                        <ul class="dropdown-menu">
                            <li>
                                <a href="../graphs/class.html">
                                    <i class="icon-list-alt"></i>&#160;Class hierarchy diagram
                                </a>
                            </li>
                        </ul>
                    </li>
                    <li class="dropdown" id="reports-menu">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            Reports <b class="caret"></b>
                        </a>
                        <ul class="dropdown-menu">
                            <li>
                                <a href="../reports/errors.html">
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <i class="icon-list-alt"></i>&#160;Errors <span class="label label-info pull-right">954</span>
                                </a>
                            </li>
                            <li>
                                <a href="../reports/markers.html">
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <i class="icon-list-alt"></i>&#160;Markers <span class="label label-info pull-right">2</span>
                                </a>
                            </li>
                            <li>
                                <a href="../reports/deprecated.html">
                                                                                                            <i class="icon-list-alt"></i>&#160;Deprecated <span class="label label-info pull-right">0</span>
                                </a>
                            </li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <!--<div class="go_to_top">-->
    <!--<a href="#___" style="color: inherit">Back to top&#160;&#160;<i class="icon-upload icon-white"></i></a>-->
    <!--</div>-->
</div>

<div id="___" class="container-fluid">
        <section class="row-fluid">
        <div class="span2 sidebar">
                                <div class="accordion" style="margin-bottom: 0">
        <div class="accordion-group">
            <div class="accordion-heading">
                                    <a class="accordion-toggle " data-toggle="collapse" data-target="#namespace-2001389142"></a>
                                <a href="../namespaces/default.html" style="margin-left: 30px; padding-left: 0">\</a>
            </div>
            <div id="namespace-2001389142" class="accordion-body collapse in">
                <div class="accordion-inner">

                    
                    <ul>
                                                    <li class="interface"><a href="../classes/JsonSerializable.html">JsonSerializable</a></li>
                                                    <li class="interface"><a href="../classes/NotORM_Cache.html">NotORM_Cache</a></li>
                                                    <li class="interface"><a href="../classes/NotORM_Structure.html">NotORM_Structure</a></li>
                                                    <li class="interface"><a href="../classes/PhalApi_Cache.html">PhalApi_Cache</a></li>
                                                    <li class="interface"><a href="../classes/PhalApi_Config.html">PhalApi_Config</a></li>
                                                    <li class="interface"><a href="../classes/PhalApi_Crypt.html">PhalApi_Crypt</a></li>
                                                    <li class="interface"><a href="../classes/PhalApi_DB.html">PhalApi_DB</a></li>
                                                    <li class="interface"><a href="../classes/PhalApi_Filter.html">PhalApi_Filter</a></li>
                                                    <li class="interface"><a href="../classes/PhalApi_Model.html">PhalApi_Model</a></li>
                                                                                                    <li class="class"><a href="../classes/Api_AnotherImpl.html">Api_AnotherImpl</a></li>
                                                    <li class="class"><a href="../classes/Api_Default.html">Api_Default</a></li>
                                                    <li class="class"><a href="../classes/Api_Helper_User_Mock.html">Api_Helper_User_Mock</a></li>
                                                    <li class="class"><a href="../classes/Cookie_Crypt_Mock.html">Cookie_Crypt_Mock</a></li>
                                                    <li class="class"><a href="../classes/Crypt_Mock.html">Crypt_Mock</a></li>
                                                    <li class="class"><a href="../classes/Demo.html">Demo</a></li>
                                                    <li class="class"><a href="../classes/Demo2.html">Demo2</a></li>
                                                    <li class="class"><a href="../classes/Memcached_Mock.html">Memcached_Mock</a></li>
                                                    <li class="class"><a href="../classes/NotORM.html">NotORM</a></li>
                                                    <li class="class"><a href="../classes/NotORM_Abstract.html">NotORM_Abstract</a></li>
                                                    <li class="class"><a href="../classes/NotORM_Cache_APC.html">NotORM_Cache_APC</a></li>
                                                    <li class="class"><a href="../classes/NotORM_Cache_Database.html">NotORM_Cache_Database</a></li>
                                                    <li class="class"><a href="../classes/NotORM_Cache_File.html">NotORM_Cache_File</a></li>
                                                    <li class="class"><a href="../classes/NotORM_Cache_Include.html">NotORM_Cache_Include</a></li>
                                                    <li class="class"><a href="../classes/NotORM_Cache_Memcache.html">NotORM_Cache_Memcache</a></li>
                                                    <li class="class"><a href="../classes/NotORM_Cache_Session.html">NotORM_Cache_Session</a></li>
                                                    <li class="class"><a href="../classes/NotORM_Literal.html">NotORM_Literal</a></li>
                                                    <li class="class"><a href="../classes/NotORM_MultiResult.html">NotORM_MultiResult</a></li>
                                                    <li class="class"><a href="../classes/NotORM_Result.html">NotORM_Result</a></li>
                                                    <li class="class"><a href="../classes/NotORM_Row.html">NotORM_Row</a></li>
                                                    <li class="class"><a href="../classes/NotORM_Structure_Convention.html">NotORM_Structure_Convention</a></li>
                                                    <li class="class"><a href="../classes/NotORM_Structure_Discovery.html">NotORM_Structure_Discovery</a></li>
                                                    <li class="class"><a href="../classes/PhalApi.html">PhalApi</a></li>
                                                    <li class="class"><a href="../classes/PhalApi_Api.html">PhalApi_Api</a></li>
                                                    <li class="class"><a href="../classes/PhalApi_Api_Impl.html">PhalApi_Api_Impl</a></li>
                                                    <li class="class"><a href="../classes/PhalApi_ApiFactory.html">PhalApi_ApiFactory</a></li>
                                                    <li class="class"><a href="../classes/PhalApi_Cache_File.html">PhalApi_Cache_File</a></li>
                                                    <li class="class"><a href="../classes/PhalApi_Cache_Memcache.html">PhalApi_Cache_Memcache</a></li>
                                                    <li class="class"><a href="../classes/PhalApi_Cache_Memcached.html">PhalApi_Cache_Memcached</a></li>
                                                    <li class="class"><a href="../classes/PhalApi_Cache_Multi.html">PhalApi_Cache_Multi</a></li>
                                                    <li class="class"><a href="../classes/PhalApi_Cache_None.html">PhalApi_Cache_None</a></li>
                                                    <li class="class"><a href="../classes/PhalApi_Cache_Redis.html">PhalApi_Cache_Redis</a></li>
                                                    <li class="class"><a href="../classes/PhalApi_Config_File.html">PhalApi_Config_File</a></li>
                                                    <li class="class"><a href="../classes/PhalApi_Cookie.html">PhalApi_Cookie</a></li>
                                                    <li class="class"><a href="../classes/PhalApi_Cookie_Multi.html">PhalApi_Cookie_Multi</a></li>
                                                    <li class="class"><a href="../classes/PhalApi_Crypt_Mcrypt.html">PhalApi_Crypt_Mcrypt</a></li>
                                                    <li class="class"><a href="../classes/PhalApi_Crypt_MultiMcrypt.html">PhalApi_Crypt_MultiMcrypt</a></li>
                                                    <li class="class"><a href="../classes/PhalApi_Crypt_RSA_KeyGenerator.html">PhalApi_Crypt_RSA_KeyGenerator</a></li>
                                                    <li class="class"><a href="../classes/PhalApi_Crypt_RSA_MultiBase.html">PhalApi_Crypt_RSA_MultiBase</a></li>
                                                    <li class="class"><a href="../classes/PhalApi_Crypt_RSA_MultiPri2Pub.html">PhalApi_Crypt_RSA_MultiPri2Pub</a></li>
                                                    <li class="class"><a href="../classes/PhalApi_Crypt_RSA_MultiPub2Pri.html">PhalApi_Crypt_RSA_MultiPub2Pri</a></li>
                                                    <li class="class"><a href="../classes/PhalApi_Crypt_RSA_Pri2Pub.html">PhalApi_Crypt_RSA_Pri2Pub</a></li>
                                                    <li class="class"><a href="../classes/PhalApi_Crypt_RSA_Pub2Pri.html">PhalApi_Crypt_RSA_Pub2Pri</a></li>
                                                    <li class="class"><a href="../classes/PhalApi_CUrl.html">PhalApi_CUrl</a></li>
                                                    <li class="class"><a href="../classes/PhalApi_DB_NotORM.html">PhalApi_DB_NotORM</a></li>
                                                    <li class="class"><a href="../classes/PhalApi_DI.html">PhalApi_DI</a></li>
                                                    <li class="class"><a href="../classes/PhalApi_DI_Mock.html">PhalApi_DI_Mock</a></li>
                                                    <li class="class"><a href="../classes/PhalApi_Exception.html">PhalApi_Exception</a></li>
                                                    <li class="class"><a href="../classes/PhalApi_Exception_BadRequest.html">PhalApi_Exception_BadRequest</a></li>
                                                    <li class="class"><a href="../classes/PhalApi_Exception_InternalServerError.html">PhalApi_Exception_InternalServerError</a></li>
                                                    <li class="class"><a href="../classes/PhalApi_Filter_Impl.html">PhalApi_Filter_Impl</a></li>
                                                    <li class="class"><a href="../classes/PhalApi_Helper_ApiDesc.html">PhalApi_Helper_ApiDesc</a></li>
                                                    <li class="class"><a href="../classes/PhalApi_Helper_TestRunner.html">PhalApi_Helper_TestRunner</a></li>
                                                    <li class="class"><a href="../classes/PhalApi_Loader.html">PhalApi_Loader</a></li>
                                                    <li class="class"><a href="../classes/PhalApi_Logger.html">PhalApi_Logger</a></li>
                                                    <li class="class"><a href="../classes/PhalApi_Logger_Explorer.html">PhalApi_Logger_Explorer</a></li>
                                                    <li class="class"><a href="../classes/PhalApi_Logger_File.html">PhalApi_Logger_File</a></li>
                                                    <li class="class"><a href="../classes/PhalApi_Model_NotORM.html">PhalApi_Model_NotORM</a></li>
                                                    <li class="class"><a href="../classes/PhalApi_Model_NotORM_Tmp.html">PhalApi_Model_NotORM_Tmp</a></li>
                                                    <li class="class"><a href="../classes/PhalApi_ModelProxy.html">PhalApi_ModelProxy</a></li>
                                                    <li class="class"><a href="../classes/PhalApi_ModelProxy_Mock.html">PhalApi_ModelProxy_Mock</a></li>
                                                    <li class="class"><a href="../classes/PhalApi_ModelQuery.html">PhalApi_ModelQuery</a></li>
                                                    <li class="class"><a href="../classes/PhalApi_Request.html">PhalApi_Request</a></li>
                                                    <li class="class"><a href="../classes/PhalApi_Request_Var.html">PhalApi_Request_Var</a></li>
                                                    <li class="class"><a href="../classes/PhalApi_Response.html">PhalApi_Response</a></li>
                                                    <li class="class"><a href="../classes/PhalApi_Response_Explorer.html">PhalApi_Response_Explorer</a></li>
                                                    <li class="class"><a href="../classes/PhalApi_Response_Json.html">PhalApi_Response_Json</a></li>
                                                    <li class="class"><a href="../classes/PhalApi_Response_Json_Mock.html">PhalApi_Response_Json_Mock</a></li>
                                                    <li class="class"><a href="../classes/PhalApi_Response_JsonP.html">PhalApi_Response_JsonP</a></li>
                                                    <li class="class"><a href="../classes/PhalApi_Response_JsonP_Mock.html">PhalApi_Response_JsonP_Mock</a></li>
                                                    <li class="class"><a href="../classes/PhalApi_Tool.html">PhalApi_Tool</a></li>
                                                    <li class="class"><a href="../classes/PhalApi_Translator.html">PhalApi_Translator</a></li>
                                                    <li class="class"><a href="../classes/PhalApi_Translator_Mock.html">PhalApi_Translator_Mock</a></li>
                                                    <li class="class"><a href="../classes/PhpUnderControl_PhalApi_Test.html">PhpUnderControl_PhalApi_Test</a></li>
                                                    <li class="class"><a href="../classes/PhpUnderControl_PhalApiApi_Test.html">PhpUnderControl_PhalApiApi_Test</a></li>
                                                    <li class="class"><a href="../classes/PhpUnderControl_PhalApiApiFactory_Test.html">PhpUnderControl_PhalApiApiFactory_Test</a></li>
                                                    <li class="class"><a href="../classes/PhpUnderControl_PhalApiCacheFile_Test.html">PhpUnderControl_PhalApiCacheFile_Test</a></li>
                                                    <li class="class"><a href="../classes/PhpUnderControl_PhalApiCacheMemcached_Test.html">PhpUnderControl_PhalApiCacheMemcached_Test</a></li>
                                                    <li class="class"><a href="../classes/PhpUnderControl_PhalApiCacheMulti_Test.html">PhpUnderControl_PhalApiCacheMulti_Test</a></li>
                                                    <li class="class"><a href="../classes/PhpUnderControl_PhalApiCacheNone_Test.html">PhpUnderControl_PhalApiCacheNone_Test</a></li>
                                                    <li class="class"><a href="../classes/PhpUnderControl_PhalApiConfigFile_Test.html">PhpUnderControl_PhalApiConfigFile_Test</a></li>
                                                    <li class="class"><a href="../classes/PhpUnderControl_PhalApiCookie_Test.html">PhpUnderControl_PhalApiCookie_Test</a></li>
                                                    <li class="class"><a href="../classes/PhpUnderControl_PhalApiCookieMulti_Test.html">PhpUnderControl_PhalApiCookieMulti_Test</a></li>
                                                    <li class="class"><a href="../classes/PhpUnderControl_PhalApiCryptMcrypt_Test.html">PhpUnderControl_PhalApiCryptMcrypt_Test</a></li>
                                                    <li class="class"><a href="../classes/PhpUnderControl_PhalApiCryptRSAMultiPri2Pub_Test.html">PhpUnderControl_PhalApiCryptRSAMultiPri2Pub_Test</a></li>
                                                    <li class="class"><a href="../classes/PhpUnderControl_PhalApiCryptRSAPri2Pub_Test.html">PhpUnderControl_PhalApiCryptRSAPri2Pub_Test</a></li>
                                                    <li class="class"><a href="../classes/PhpUnderControl_PhalApiCryptRSAPub2Pri_Test.html">PhpUnderControl_PhalApiCryptRSAPub2Pri_Test</a></li>
                                                    <li class="class"><a href="../classes/PhpUnderControl_PhalApiCUrl_Test.html">PhpUnderControl_PhalApiCUrl_Test</a></li>
                                                    <li class="class"><a href="../classes/PhpUnderControl_PhalApiDBNotORM_Test.html">PhpUnderControl_PhalApiDBNotORM_Test</a></li>
                                                    <li class="class"><a href="../classes/PhpUnderControl_PhalApiDI_Test.html">PhpUnderControl_PhalApiDI_Test</a></li>
                                                    <li class="class"><a href="../classes/PhpUnderControl_PhalApiHelperApiDesc_Test.html">PhpUnderControl_PhalApiHelperApiDesc_Test</a></li>
                                                    <li class="class"><a href="../classes/PhpUnderControl_PhalApiLoader_Test.html">PhpUnderControl_PhalApiLoader_Test</a></li>
                                                    <li class="class"><a href="../classes/PhpUnderControl_PhalApiLoggerExplorer_Test.html">PhpUnderControl_PhalApiLoggerExplorer_Test</a></li>
                                                    <li class="class"><a href="../classes/PhpUnderControl_PhalApiLoggerFile_Test.html">PhpUnderControl_PhalApiLoggerFile_Test</a></li>
                                                    <li class="class"><a href="../classes/PhpUnderControl_PhalApiModelNotORM_Test.html">PhpUnderControl_PhalApiModelNotORM_Test</a></li>
                                                    <li class="class"><a href="../classes/PhpUnderControl_PhalApiModelProxy_Test.html">PhpUnderControl_PhalApiModelProxy_Test</a></li>
                                                    <li class="class"><a href="../classes/PhpUnderControl_PhalApiModelQuery_Test.html">PhpUnderControl_PhalApiModelQuery_Test</a></li>
                                                    <li class="class"><a href="../classes/PhpUnderControl_PhalApiMultiCryptMcrypt_Test.html">PhpUnderControl_PhalApiMultiCryptMcrypt_Test</a></li>
                                                    <li class="class"><a href="../classes/PhpUnderControl_PhalApiRedis_Test.html">PhpUnderControl_PhalApiRedis_Test</a></li>
                                                    <li class="class"><a href="../classes/PhpUnderControl_PhalApiRequest_Test.html">PhpUnderControl_PhalApiRequest_Test</a></li>
                                                    <li class="class"><a href="../classes/PhpUnderControl_PhalApiRequestVar_Test.html">PhpUnderControl_PhalApiRequestVar_Test</a></li>
                                                    <li class="class"><a href="../classes/PhpUnderControl_PhalApiResponse_Test.html">PhpUnderControl_PhalApiResponse_Test</a></li>
                                                    <li class="class"><a href="../classes/PhpUnderControl_PhalApiTool_Test.html">PhpUnderControl_PhalApiTool_Test</a></li>
                                                    <li class="class"><a href="../classes/PhpUnderControl_PhalApiTranslator_Test.html">PhpUnderControl_PhalApiTranslator_Test</a></li>
                                            </ul>
                </div>
            </div>
        </div>
    </div>

        </div>
    </section>
    <section class="row-fluid">
        <div class="span10 offset2">
            <div class="row-fluid">
                <div class="span8 content class">
                    <nav>
                                                <a href="../namespaces/default.html">\</a> <i class="icon-level-up"></i>
                                            </nav>
                    <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal"><i class="icon-code"></i></a>

                    <h1><small>\</small>Api_AnotherImpl</h1>
                    <p><em>PhalApi_Api 接口服务基类</em></p>
                    <ul>
<li>实现身份验证、按参数规则解析生成接口参数等操作</li>
<li>提供给开发人员自宝义的接口服务具体类继承</li>
</ul>
<p><br>通常地，可以这样继承：<br></p>
<pre><code> class Api_Demo extends PhalApi_Api {

     public function getRules() {
         return array(
             // ...
         );
     }

     public function doSth() {
         $rs = array();

         // ...

         return $rs;
     }
 }</code></pre>
                    
                                        
                    <section id="summary">
                        <h2>Summary</h2>
                        <section class="row-fluid heading">
                            <section class="span4">
                                <a href="#methods">Methods</a>
                            </section>
                            <section class="span4">
                                <a href="#properties">Properties</a>
                            </section>
                            <section class="span4">
                                <a href="#constants">Constants</a>
                            </section>
                        </section>
                        <section class="row-fluid public">
                            <section class="span4">
                                                                    <a href="../classes/PhalApi_Api.html#method___set" class="">__set()</a><br />
                                                                    <a href="../classes/PhalApi_Api.html#method___get" class="">__get()</a><br />
                                                                    <a href="../classes/PhalApi_Api.html#method_init" class="">init()</a><br />
                                                                    <a href="../classes/PhalApi_Api.html#method_getApiRules" class="">getApiRules()</a><br />
                                                                    <a href="../classes/PhalApi_Api.html#method_getRules" class="">getRules()</a><br />
                                                                    <a href="../classes/Api_AnotherImpl.html#method_doSth" class="">doSth()</a><br />
                                                                    <a href="../classes/Api_AnotherImpl.html#method_makeSomeTrouble" class="">makeSomeTrouble()</a><br />
                                                            </section>
                            <section class="span4">
                                                                    <a href="../classes/PhalApi_Api.html#property_whatever" class="">$whatever</a><br />
                                                            </section>
                            <section class="span4">
                                                                    <em>No constants found</em>
                                                            </section>
                        </section>
                        <section class="row-fluid protected">
                            <section class="span4">
                                                                    <a href="../classes/PhalApi_Api.html#method_createMemberValue" class="">createMemberValue()</a><br />
                                                                    <a href="../classes/PhalApi_Api.html#method_filterCheck" class="">filterCheck()</a><br />
                                                                    <a href="../classes/PhalApi_Api.html#method_userCheck" class="">userCheck()</a><br />
                                                            </section>
                            <section class="span4">
                                                                    <em>No protected properties found</em>
                                                            </section>
                            <section class="span4">
                                <em>N/A</em>
                            </section>
                        </section>
                        <section class="row-fluid private">
                            <section class="span4">
                                                                    <em>No private methods found</em>
                                                            </section>
                            <section class="span4">
                                                                    <em>No private properties found</em>
                                                            </section>
                            <section class="span4">
                                <em>N/A</em>
                            </section>
                        </section>
                    </section>
                </div>
                <aside class="span4 detailsbar">
                                        
                    
                    <dl>
                        <dt>File</dt>
                            <dd><a href="../files/Tests.PhalApi_Test.html"><div class="path-wrapper">Tests/PhalApi_Test.php</div></a></dd>
                                                <dt>Package</dt>
                            <dd><div class="namespace-wrapper">Default</div></dd>
                                                <dt>Class hierarchy</dt>
                            <dd class="hierarchy">
                                                                                                                                                                                                                                                                                                
                                        <div class="namespace-wrapper"><a href="../classes/PhalApi_Api.html">\PhalApi_Api</a></div>
                                                                                                    <div class="namespace-wrapper">\Api_AnotherImpl</div>
                            </dd>

                        
                        
                        
                        
                                                                        </dl>
                    <h2>Tags</h2>
                    <table class="table table-condensed">
                                            <tr><td colspan="2"><em>None found</em></td></tr>
                                        </table>
                </aside>
            </div>

                        
                                    <a id="properties" name="properties"></a>
            <div class="row-fluid">
                <div class="span8 content class">
                    <h2>Properties</h2>
                </div>
                <aside class="span4 detailsbar"></aside>
            </div>

                                    <div class="row-fluid">
        <div class="span8 content class">
            <a id="property_whatever" name="property_whatever" class="anchor"></a>
            <article class="property">
                <h3 class="public ">$whatever</h3>
                <pre class="signature">$whatever : mixed</pre>
                <p><em></em></p>
                <p>接口参数</p>

                                <h4>Type</h4>
                mixed
                                            </article>
        </div>
        <aside class="span4 detailsbar">
            <h1><i class="icon-arrow-down"></i></h1>
                        <dl>
                                    <dt>Inherited from</dt>
                    <dd><a href="../classes/PhalApi_Api.html"><div class="path-wrapper">\PhalApi_Api</div></a></dd>
                                                            </dl>
            <h2>Tags</h2>
            <table class="table table-condensed">
                                    <tr><td colspan="2"><em>None found</em></td></tr>
                            </table>
        </aside>
    </div>

                                                            
                                    <a id="methods" name="methods"></a>
            <div class="row-fluid">
                <div class="span8 content class"><h2>Methods</h2></div>
                <aside class="span4 detailsbar"></aside>
            </div>

                                    <div class="row-fluid">
        <div class="span8 content class">
            <a id="method___set" name="method___set" class="anchor"></a>
            <article class="method">
                <h3 class="public ">__set()</h3>
                <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
                <pre class="signature" style="margin-right: 54px;">__set(string  <span class="argument">$name</span>, mixed  <span class="argument">$value</span>) </pre>
                <p><em>设置规则解析后的接口参数</em></p>
                

                                    <h4>Parameters</h4>
                    <table class="table table-condensed table-hover">
                                                    <tr>
                                <td>string</td>
                                <td>$name </td>
                                <td><p>接口参数名字</p></td>
                            </tr>
                                                    <tr>
                                <td>mixed</td>
                                <td>$value </td>
                                <td><p>接口参数解析后的值</p></td>
                            </tr>
                                            </table>
                
                
                				
                            </article>
        </div>
        <aside class="span4 detailsbar">
            <h1><i class="icon-arrow-down"></i></h1>
                                                            <dl>
                                                    <dt>Inherited from</dt>
                    <dd><a href="../classes/PhalApi_Api.html"><div class="path-wrapper">\PhalApi_Api</div></a></dd>
                                                            </dl>
            <h2>Tags</h2>
            <table class="table table-condensed">
                                    <tr><td colspan="2"><em>None found</em></td></tr>
                            </table>
        </aside>
    </div>

                                    <div class="row-fluid">
        <div class="span8 content class">
            <a id="method___get" name="method___get" class="anchor"></a>
            <article class="method">
                <h3 class="public ">__get()</h3>
                <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
                <pre class="signature" style="margin-right: 54px;">__get(string  <span class="argument">$name</span>) : mixed</pre>
                <p><em>获取规则解析后的接口参数</em></p>
                

                                    <h4>Parameters</h4>
                    <table class="table table-condensed table-hover">
                                                    <tr>
                                <td>string</td>
                                <td>$name </td>
                                <td><p>接口参数名字</p></td>
                            </tr>
                                            </table>
                
                                    <h4>Throws</h4>
                    <dl>
                                                    <dt>\PhalApi_Exception_InternalServerError</dt>
                            <dd><p>获取未设置的接口参数时，返回500</p></dd>
                                                                    </dl>
                
                                    <h4>Returns</h4>
                    mixed
                                    				
                            </article>
        </div>
        <aside class="span4 detailsbar">
            <h1><i class="icon-arrow-down"></i></h1>
                                                            <dl>
                                                    <dt>Inherited from</dt>
                    <dd><a href="../classes/PhalApi_Api.html"><div class="path-wrapper">\PhalApi_Api</div></a></dd>
                                                            </dl>
            <h2>Tags</h2>
            <table class="table table-condensed">
                                    <tr><td colspan="2"><em>None found</em></td></tr>
                            </table>
        </aside>
    </div>

                                    <div class="row-fluid">
        <div class="span8 content class">
            <a id="method_init" name="method_init" class="anchor"></a>
            <article class="method">
                <h3 class="public ">init()</h3>
                <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
                <pre class="signature" style="margin-right: 54px;">init() : null</pre>
                <p><em>初始化</em></p>
                <p>主要完成的初始化工作有：</p>
<ul>
<li>1、[必须]按参数规则解析生成接口参数</li>
<li>2、[可选]过滤器调用，如：签名验证</li>
<li>3、[可选]用户身份验证</li>
</ul>

                
                
                                    <h4>Returns</h4>
                    null
                                    				
                            </article>
        </div>
        <aside class="span4 detailsbar">
            <h1><i class="icon-arrow-down"></i></h1>
                                                            <dl>
                                                    <dt>Inherited from</dt>
                    <dd><a href="../classes/PhalApi_Api.html"><div class="path-wrapper">\PhalApi_Api</div></a></dd>
                                                                                            <dt>Uses</dt>
                                                                <dd>PhalApi_Api::createMemberValue()</dd>
                                            <dd>PhalApi_Api::filterCheck()</dd>
                                            <dd>PhalApi_Api::userCheck()</dd>
                                                </dl>
            <h2>Tags</h2>
            <table class="table table-condensed">
                                    <tr><td colspan="2"><em>None found</em></td></tr>
                            </table>
        </aside>
    </div>

                                    <div class="row-fluid">
        <div class="span8 content class">
            <a id="method_getApiRules" name="method_getApiRules" class="anchor"></a>
            <article class="method">
                <h3 class="public ">getApiRules()</h3>
                <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
                <pre class="signature" style="margin-right: 54px;">getApiRules() : array</pre>
                <p><em>取接口参数规则</em></p>
                <p>主要包括有：</p>
<ul>
<li>1、[固定]系统级的service参数</li>
<li>2、应用级统一接口参数规则，在app.apiCommonRules中配置</li>
<li>3、接口级通常参数规则，在子类的*中配置</li>
<li>4、接口级当前操作参数规则</li>
</ul>
<p><b>当规则有冲突时，以后面为准。另外，被请求的函数名和配置的下标都转成小写再进行匹配。</b></p>

                
                
                                    <h4>Returns</h4>
                    array
                                    				
                            </article>
        </div>
        <aside class="span4 detailsbar">
            <h1><i class="icon-arrow-down"></i></h1>
                                                            <dl>
                                                    <dt>Inherited from</dt>
                    <dd><a href="../classes/PhalApi_Api.html"><div class="path-wrapper">\PhalApi_Api</div></a></dd>
                                                                                            <dt>Uses</dt>
                                                                <dd>PhalApi_Api::getRules()</dd>
                                                </dl>
            <h2>Tags</h2>
            <table class="table table-condensed">
                                    <tr><td colspan="2"><em>None found</em></td></tr>
                            </table>
        </aside>
    </div>

                                    <div class="row-fluid">
        <div class="span8 content class">
            <a id="method_getRules" name="method_getRules" class="anchor"></a>
            <article class="method">
                <h3 class="public ">getRules()</h3>
                <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
                <pre class="signature" style="margin-right: 54px;">getRules() : array</pre>
                <p><em>获取参数设置的规则</em></p>
                <p>可由开发人员根据需要重载</p>

                
                
                                    <h4>Returns</h4>
                    array
                                    				
                            </article>
        </div>
        <aside class="span4 detailsbar">
            <h1><i class="icon-arrow-down"></i></h1>
                                                            <dl>
                                                    <dt>Inherited from</dt>
                    <dd><a href="../classes/PhalApi_Api.html"><div class="path-wrapper">\PhalApi_Api</div></a></dd>
                                                            </dl>
            <h2>Tags</h2>
            <table class="table table-condensed">
                                    <tr><td colspan="2"><em>None found</em></td></tr>
                            </table>
        </aside>
    </div>

                                    <div class="row-fluid">
        <div class="span8 content class">
            <a id="method_doSth" name="method_doSth" class="anchor"></a>
            <article class="method">
                <h3 class="public ">doSth()</h3>
                <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
                <pre class="signature" style="margin-right: 54px;">doSth() </pre>
                <p><em></em></p>
                

                
                
                				
                            </article>
        </div>
        <aside class="span4 detailsbar">
            <h1><i class="icon-arrow-down"></i></h1>
                                                            <dl>
                                                                            </dl>
            <h2>Tags</h2>
            <table class="table table-condensed">
                                    <tr><td colspan="2"><em>None found</em></td></tr>
                            </table>
        </aside>
    </div>

                                    <div class="row-fluid">
        <div class="span8 content class">
            <a id="method_makeSomeTrouble" name="method_makeSomeTrouble" class="anchor"></a>
            <article class="method">
                <h3 class="public ">makeSomeTrouble()</h3>
                <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
                <pre class="signature" style="margin-right: 54px;">makeSomeTrouble() </pre>
                <p><em></em></p>
                

                
                
                				
                            </article>
        </div>
        <aside class="span4 detailsbar">
            <h1><i class="icon-arrow-down"></i></h1>
                                                            <dl>
                                                                            </dl>
            <h2>Tags</h2>
            <table class="table table-condensed">
                                    <tr><td colspan="2"><em>None found</em></td></tr>
                            </table>
        </aside>
    </div>

                                                    <div class="row-fluid">
        <div class="span8 content class">
            <a id="method_createMemberValue" name="method_createMemberValue" class="anchor"></a>
            <article class="method">
                <h3 class="protected ">createMemberValue()</h3>
                <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
                <pre class="signature" style="margin-right: 54px;">createMemberValue() </pre>
                <p><em>按参数规则解析生成接口参数</em></p>
                <p>根据配置的参数规则，解析过滤，并将接口参数存放于类成员变量</p>

                
                
                				
                            </article>
        </div>
        <aside class="span4 detailsbar">
            <h1><i class="icon-arrow-down"></i></h1>
                                                            <dl>
                                                    <dt>Inherited from</dt>
                    <dd><a href="../classes/PhalApi_Api.html"><div class="path-wrapper">\PhalApi_Api</div></a></dd>
                                                                                            <dt>Uses</dt>
                                                                <dd>PhalApi_Api::getApiRules()</dd>
                                                </dl>
            <h2>Tags</h2>
            <table class="table table-condensed">
                                    <tr><td colspan="2"><em>None found</em></td></tr>
                            </table>
        </aside>
    </div>

                                    <div class="row-fluid">
        <div class="span8 content class">
            <a id="method_filterCheck" name="method_filterCheck" class="anchor"></a>
            <article class="method">
                <h3 class="protected ">filterCheck()</h3>
                <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
                <pre class="signature" style="margin-right: 54px;">filterCheck() </pre>
                <p><em>过滤器调用</em></p>
                <p>可由开发人员根据需要重载，以实现项目拦截处理，需要：</p>
<ul>
<li>1、实现PhalApi_Filter::check()接口</li>
<li>2、注册的过滤器到DI()-&gt;filter</li>
</ul>
<p><br>以下是一个简单的示例：<br></p>
<pre><code>    class My_Filter implements PhalApi_Filter {

        public function check() {
            //TODO
        }
    }

 //在初始化文件 init.php 中注册过滤器
 DI()-&gt;filter = 'My_Filter';</code></pre>

                
                                    <h4>Throws</h4>
                    <dl>
                                                    <dt>\PhalApi_Exception_BadRequest</dt>
                            <dd><p>当验证失败时，请抛出此异常，以返回400</p></dd>
                                                                    </dl>
                
                				
                            </article>
        </div>
        <aside class="span4 detailsbar">
            <h1><i class="icon-arrow-down"></i></h1>
                                                            <dl>
                                                    <dt>Inherited from</dt>
                    <dd><a href="../classes/PhalApi_Api.html"><div class="path-wrapper">\PhalApi_Api</div></a></dd>
                                                                            <dt>See also</dt>
                                                                <dd><a href="../classes/PhalApi_Filter.html#method_check"><span class="namespace-wrapper"></span></a></dd>
                                                                </dl>
            <h2>Tags</h2>
            <table class="table table-condensed">
                                    <tr><td colspan="2"><em>None found</em></td></tr>
                            </table>
        </aside>
    </div>

                                    <div class="row-fluid">
        <div class="span8 content class">
            <a id="method_userCheck" name="method_userCheck" class="anchor"></a>
            <article class="method">
                <h3 class="protected ">userCheck()</h3>
                <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
                <pre class="signature" style="margin-right: 54px;">userCheck() </pre>
                <p><em>用户身份验证</em></p>
                <p>可由开发人员根据需要重载，此通用操作一般可以使用委托或者放置在应用接口基类</p>

                
                                    <h4>Throws</h4>
                    <dl>
                                                    <dt>\PhalApi_Exception_BadRequest</dt>
                            <dd><p>当验证失败时，请抛出此异常，以返回400</p></dd>
                                                                    </dl>
                
                				
                            </article>
        </div>
        <aside class="span4 detailsbar">
            <h1><i class="icon-arrow-down"></i></h1>
                                                            <dl>
                                                    <dt>Inherited from</dt>
                    <dd><a href="../classes/PhalApi_Api.html"><div class="path-wrapper">\PhalApi_Api</div></a></dd>
                                                            </dl>
            <h2>Tags</h2>
            <table class="table table-condensed">
                                    <tr><td colspan="2"><em>None found</em></td></tr>
                            </table>
        </aside>
    </div>

                                                    </div>
    </section>

    <div id="source-view" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="source-view-label" aria-hidden="true">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
            <h3 id="source-view-label">PhalApi_Test.php</h3>
        </div>
        <div class="modal-body">
            <pre data-src="../files/Tests/PhalApi_Test.php.txt" class="language-php line-numbers"></pre>
        </div>
    </div>

    <footer class="row-fluid">
        <section class="span10 offset2">
            <section class="row-fluid">
                <section class="span10 offset1">
                    <section class="row-fluid footer-sections">
                        <section class="span4">
                                                        <h1><i class="icon-code"></i></h1>
                            <div>
                                <ul>
                                                                    </ul>
                            </div>
                        </section>
                        <section class="span4">
                                                        <h1><i class="icon-bar-chart"></i></h1>
                            <div>
                                <ul>
                                    <li><a href="../graphs/class.html">Class Hierarchy Diagram</a></li>
                                </ul>
                            </div>
                        </section>
                        <section class="span4">
                                                        <h1><i class="icon-pushpin"></i></h1>
                            <div>
                                <ul>
                                    <li><a href="../reports/errors.html">Errors</a></li>
                                    <li><a href="../reports/markers.html">Markers</a></li>
                                </ul>
                            </div>
                        </section>
                    </section>
                </section>
            </section>
            <section class="row-fluid">
                <section class="span10 offset1">
                    <hr />
                    Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor </a> and authored
                    on August 24th, 2015 at 13:07.
                </section>
            </section>
        </section>
    </footer>
</div>

</body>
</html>
